package com.restaurant.application.shoplist.support;

import com.nebutown.base.data.ViewUpdate;
import com.nebutown.generation.basictype.StringData;
import com.nebutown.supporthome.AbstractImpl;
import com.nebutown.supporthome.CmdCapsule;
import com.restaurant.application.shoplist.ShopList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractShopList extends AbstractImpl implements ShopList {

    private static final Logger logger = LoggerFactory.getLogger(ShopList.class);

    public final Class<?> getEffectiveInterface() {
        return ShopList.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "ShopListData";

    public ShopListData getData() {
        return escort.getData(ShopListData.class);
    }

    public void setData(ShopListData data) {
        escort.setData(data);
    }
    public static CmdCapsule CMD_INSERT = new CmdCapsule("insert", 0, null);
    public abstract ViewUpdate insert(int[] seq);
    public static CmdCapsule CMD_SEARCH = new CmdCapsule("search", 1, ShopListPageVo.class);
    public abstract ViewUpdate search(ShopListPageVo search, int[] seq);
    public static CmdCapsule CMD_DETAIL = new CmdCapsule("detail", 2, null);
    public abstract ViewUpdate detail(int[] seq);
    public static CmdCapsule CMD_EDIT = new CmdCapsule("edit", 3, null);
    public abstract ViewUpdate edit(int[] seq);
    public static CmdCapsule CMD_DELETE = new CmdCapsule("delete", 4, null);
    public abstract ViewUpdate delete(int[] seq);
    public static CmdCapsule CMD_SWITCHPAGE = new CmdCapsule("switchPage", 5, StringData.class);
    public abstract ViewUpdate switchPage(StringData switchPage, int[] seq);
}
